package org.sws.infrastructure.persistent.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sws.infrastructure.persistent.po.StrategyAward;

import java.util.List;

/**
 * @author joyboy
 */
@Mapper
public interface IStrategyAwardDao {

    List<StrategyAward> queryStrategyAwardList(Long strategyId);

    String queryStrategyAwardRuleModelBystrategyAndAward(@Param("strategyId") Long strategyId, @Param("awardId") Integer awardId);

    void updateStrategyAwardStock(Long strategyId, Integer awardId);

    StrategyAward queryStrategyAward(StrategyAward strategyAwardReq);

    List<StrategyAward> queryOpenActivityStrategyAwardList();

}
